package com.ruoyi.od.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论点赞管理对象 od_commentlike
 * 
 * @author ruoyi
 * @date 2023-08-05
 */
public class OdCommentlike extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点赞id */
    @Excel(name = "点赞id")
    private Long id;

    /** 点赞者id */
    @Excel(name = "点赞者id")
    private Long userId;

    /** 点赞评论id */
    @Excel(name = "点赞评论id")
    private Long commentId;

    /** 点赞状态 */
    @Excel(name = "点赞状态")
    private Integer state;

    /** 点赞者名称 */
    @Excel(name = "点赞者名称")
    private String username;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCommentId(Long commentId) 
    {
        this.commentId = commentId;
    }

    public Long getCommentId() 
    {
        return commentId;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("commentId", getCommentId())
            .append("state", getState())
            .append("username", getUsername())
            .toString();
    }
}
